package com.Logistics.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("pd_common_opt_log")//操作日志
public class CommonOptLog implements Serializable {
    private static final long serialVersionUID = 6514275163464076063L;
    @TableField("id")
    private String id;//主键
    @TableField("request_ip")
    private String requestIp;//操作IP
    @TableField("type")
    private String type;//日志类型
    @TableField("user_name")
    private String userName;//操作人
    @TableField("description")
    private String description;//操作描述
    @TableField("class_path")
    private String classPath;//类路径
    @TableField("action_method")
    private String actionMethod;//请求方法
    @TableField("request_uri")
    private String requestUrl;//请求地址
    @TableField("http_method")
    private String httpMethod;//请求类型
    @TableField("params")
    private String params;//请求参数
    @TableField("result")
    private String result;//返回值
    @TableField("ex_desc")
    private String exDesc;//异常信息
    @TableField("ex_detail")
    private String exDetail;//异常描述
    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;//开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("finish_time")
    private Date finishTime;//完成时间
    @TableField("consuming_time")
    private String consumingTime;//消耗时间
    @TableField("ua")
    private String ua;//浏览器
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;//
    @TableField("create_user")
    private String createUser;//

}
